package com.thxr.sso.server.pojo;

/**
 * @Description TODO
 * @Author silence.Z
 * @Date 2020/10/20 14:27
 * @Version 1.0
 **/

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

@AllArgsConstructor
@NoArgsConstructor
@Table(name = "zt_entry") //声明pojo对应的表名
@Data
@Accessors(chain = true)//添加链式调用
@NameStyle(Style.normal)//不自动驼峰转换
public class Entry implements Serializable {
    @Id //声明主键
    @KeySql(useGeneratedKeys = true) //声明主键自增
    private Integer id;
    private String name;
    private String account;
    private String code;
    @Column(name = "`key`") //重命名解决关键字冲突
    private String key;
    private String freePasswd;
    private String ip;
    @Column(name = "`desc`")
    private String desc;
    private String createdBy;
    private Date createdDate;
    private Integer calledTime;
    private String editedBy;
    private Date editedDate;
    private String deleted;

}

